package Dao;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import Entity.Administrator;

public class AdministratorDaoTest {
	AdministratorDao adminDao=new AdministratorDao();
	Administrator admin=new Administrator("admin","19980319");

	@Before
	public void setUp() throws Exception {
		
	}

	@Test
	public void testQueryAdminByUserName() {
		assertEquals(admin.userName,adminDao.queryAdminByUserName("admin").userName);
		assertEquals(admin.pwd,adminDao.queryAdminByUserName("admin").pwd);
		//fail("Not yet implemented");
	}

}
